import request from '@/utils/request'

// 查询提问回答列表
export function listQuestionanswer(query) {
  return request({
    url: '/feedback/questionanswer/list',
    method: 'get',
    params: query
  })
}

// 查询提问回答详细
export function getQuestionanswer(id) {
  return request({
    url: '/feedback/questionanswer/' + id,
    method: 'get'
  })
}

// 新增提问回答
export function addQuestionanswer(data) {
  return request({
    url: '/feedback/questionanswer',
    method: 'post',
    data: data
  })
}

// 修改提问回答
export function updateQuestionanswer(data) {
  return request({
    url: '/feedback/questionanswer',
    method: 'put',
    data: data
  })
}

// 删除提问回答
export function delQuestionanswer(id) {
  return request({
    url: '/feedback/questionanswer/' + id,
    method: 'delete'
  })
}
